//Surface for DirectX game

#ifndef DXSURFACE_H
#define DXSURFACE_H

#include <d3dx9.h>
#include "game.h"

using namespace game;

class DXSurface : public Surface
{	
  public:
    DXSurface();
    DXSurface(GameGraphic*, const char*);
    virtual float GetWidth();
    virtual float GetHeight();
    virtual void Draw();
    virtual void Draw(int, int, int = 1);
    virtual ~DXSurface();
		
  private:
    IDirect3DDevice9* pd3ddv;       //Pointer to interface DirectX graphic device
    IDirect3DSurface9* pSurface;    //Pointer to interface DirectX surface
    D3DXIMAGE_INFO infoImg;         //Infomation of image
};

#endif